#define _CRT_SECURE_NO_WARNINGS 1
#include "SListNode.h"
void SLTPrint(SLTNode* phead) {
	while (phead) {
		printf("%d->", phead->data);
		phead = phead->next;
	}
	printf("NULL\n");
}
SLTNode* SLBuyNode(SLTDataType x) {
	SLTNode* node = (SLTNode*)malloc(sizeof(SLTNode));
	node->data = x;
	node->next = NULL;
	return node;

}
void SLTPushBack(SLTNode** pphead, SLTDataType x) {
	assert(*pphead);
	SLTNode* node = node;
	if (*pphead == NULL) {
		*pphead = node;
		return;
	}
	SLTNode* pcur = *pphead;
	while (pcur->next)
	{
		pcur = pcur->next;
	}
	pcur->next = node;
}